import React, { Component } from 'react';
import {
	KeyboardAvoidingView, Platform,
	StyleSheet, Text, Modal,
	PixelRatio, View, Image, ScrollView
} from "react-native";
import { GLOBAL } from '../../../config/global';
import { style } from '../../../theme/style';
import { Common } from '../../../component/common/Common.js';
import { API, API_GENERATE } from '../../../config/api';
import HTTP from '../../../utils/http';
import MethodUtil from '../../../utils/MethodUtil';
import moment from 'moment';
import { RelevanceDetailContainer } from './_components/RelevanceDetailContainer';

const scale = GLOBAL.SCALE;

export class SinoNewRelevanceDetailPage extends Component {
	static navigationOptions = ({ navigation }) => {
		return {
			headerTitle: '中新油销售成交绑定信息',
			headerTintColor: style.color.white,
			headerLeft: <Common type="headLeft" onPress={() => { navigation.goBack() }} color='#fff' />,
			headerRight: null,
			headerStyle: style.head.headerStyle,
			headerTitleStyle: {
				flex: 1,
				textAlign: 'center'
			}
		}
	};
	constructor(props) {
		super(props);
		console.log('params-传参数', props.navigation.state.params);
		this.state = {
		}
	}

	componentWillMount() {
	}

	render() {
		let { SOrderInfo, fee, goods } = this.props.navigation.state.params || {};
		return (
			<RelevanceDetailContainer resultData={{ SOrderInfo, orderFeeList: fee, orderItemList: goods }} isDetail={true} />
		)
	}
}